<template>
  <a-config-provider
    :locale="zhCN"
    :theme="{
      token: {
        colorPrimary: userStore.themeColor
      }
    }"
  >
    <div id="app">
      <router-view />
    </div>
  </a-config-provider>
</template>

<script setup>
import zhCN from 'ant-design-vue/es/locale/zh_CN'
import { useUserStore } from './stores'
const userStore = useUserStore()
</script>

<style scoped>
#app {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow: hidden;
}
body {
  font-family: microsoft yahei;
}
</style>
